Xcode Cloud には Package.resolved を含める必要がある

Building Swift packages or apps that use them in continuous integration workflows | Apple Developer Documentation

Most projects that contain or depend on Swift packages don’t require additional configuration. However, be sure to commit your project’s Package.resolved file to your Git repository.

Package.resolved をリモートリポジトリに含めないとエラーになる。
一応以下のようにエラーメッセージにちゃんと書いてあるので、焦らずメッセージを見れば気づくことができる。

Xcode Cloud: Could not resolve pac… | Apple Developer Forums

Resolve Package Graph xcodebuild: error: Could not resolve package dependencies:   a resolved file is required when automatic dependency resolution is disabled and should be placed at /Volumes/workspace/repository/Opus One.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved   fatalError

ちなみに gitignore.io の Swift ではデフォルトでコメントアウトしてあるものの、 Package.resolved の記述はあり、git 管理していないプロジェクトもあるだろうから、注意。
個人的には、Package を exact なバージョンで追加しない限り (upToNextMajor(from:) 等) は含めておいた方がいいとは思っている。

iOS Development Xcode Cloud Swift Package Manager Git